package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SysAppModuleFileCategory;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SysAppModuleFileCategoryProxy extends AbstractProxyEntity<SysAppModuleFileCategoryProxy, SysAppModuleFileCategory> {

    private static final Class<SysAppModuleFileCategory> entityClass = SysAppModuleFileCategory.class;

    public static final SysAppModuleFileCategoryProxy TABLE = createTable().createEmpty();

    public static SysAppModuleFileCategoryProxy createTable() {
        return new SysAppModuleFileCategoryProxy();
    }

    public SysAppModuleFileCategoryProxy() {
    }

    /**
     * {@link SysAppModuleFileCategory#getAppModuleId}
     */
    public SQLStringTypeColumn<SysAppModuleFileCategoryProxy> appModuleId() {
        return getStringTypeColumn("appModuleId");
    }

    /**
     * {@link SysAppModuleFileCategory#getFileCategoryId}
     */
    public SQLStringTypeColumn<SysAppModuleFileCategoryProxy> fileCategoryId() {
        return getStringTypeColumn("fileCategoryId");
    }

    @Override
    public Class<SysAppModuleFileCategory> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SysAppModuleFileCategoryProxyFetcher FETCHER = new SysAppModuleFileCategoryProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SysAppModuleFileCategoryProxyFetcher extends AbstractFetcher<SysAppModuleFileCategoryProxy, SysAppModuleFileCategory, SysAppModuleFileCategoryProxyFetcher> {

        public SysAppModuleFileCategoryProxyFetcher(SysAppModuleFileCategoryProxy proxy, SysAppModuleFileCategoryProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link SysAppModuleFileCategory#getAppModuleId}
         */
        public SysAppModuleFileCategoryProxyFetcher appModuleId() {
            return add(getProxy().appModuleId());
        }

        /**
         * {@link SysAppModuleFileCategory#getFileCategoryId}
         */
        public SysAppModuleFileCategoryProxyFetcher fileCategoryId() {
            return add(getProxy().fileCategoryId());
        }

        @Override
        protected SysAppModuleFileCategoryProxyFetcher createFetcher(SysAppModuleFileCategoryProxy cp, AbstractFetcher<SysAppModuleFileCategoryProxy, SysAppModuleFileCategory, SysAppModuleFileCategoryProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SysAppModuleFileCategoryProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
